Optimal. Leaf size=200 \[ -\frac {(c d-b e) \left (10 c^2 d^2-8 b c d e+b^2 e^2\right ) x}{e^6}+\frac {3 c (c d-b e) (2 c d-b e) x^2}{2 e^5}-\frac {c^2 (c d-b e) x^3}{e^4}+\frac {c^3 x^4}{4 e^3}-\frac {d^3 (c d-b e)^3}{2 e^7 (d+e x)^2}+\frac {3 d^2 (c d-b e)^2 (2 c d-b e)}{e^7 (d+e x)}+\frac {3 d (c d-b e) \left (5 c^2 d^2-5 b c d e+b^2 e^2\right ) \log (d+e x)}{e^7} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 200, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {712}
\begin {gather*} \frac {3 d (c d-b e) \left (b^2 e^2-5 b c d e+5 c^2 d^2\right ) \log (d+e x)}{e^7}-\frac {x (c d-b e) \left (b^2 e^2-8 b c d e+10 c^2 d^2\right )}{e^6}-\frac {c^2 x^3 (c d-b e)}{e^4}-\frac {d^3 (c d-b e)^3}{2 e^7 (d+e x)^2}+\frac {3 d^2 (c d-b e)^2 (2 c d-b e)}{e^7 (d+e x)}+\frac {3 c x^2 (c d-b e) (2 c d-b e)}{2 e^5}+\frac {c^3 x^4}{4 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 712
Rubi steps
\begin {align*} \int \frac {\left (b x+c x^2\right )^3}{(d+e x)^3} \, dx &=\int \left (\frac {(c d-b e) \left (-10 c^2 d^2+8 b c d e-b^2 e^2\right )}{e^6}+\frac {3 c (c d-b e) (2 c d-b e) x}{e^5}-\frac {3 c^2 (c d-b e) x^2}{e^4}+\frac {c^3 x^3}{e^3}+\frac {d^3 (c d-b e)^3}{e^6 (d+e x)^3}-\frac {3 d^2 (c d-b e)^2 (2 c d-b e)}{e^6 (d+e x)^2}+\frac {3 d (c d-b e) \left (5 c^2 d^2-5 b c d e+b^2 e^2\right )}{e^6 (d+e x)}\right ) \, dx\\ &=-\frac {(c d-b e) \left (10 c^2 d^2-8 b c d e+b^2 e^2\right ) x}{e^6}+\frac {3 c (c d-b e) (2 c d-b e) x^2}{2 e^5}-\frac {c^2 (c d-b e) x^3}{e^4}+\frac {c^3 x^4}{4 e^3}-\frac {d^3 (c d-b e)^3}{2 e^7 (d+e x)^2}+\frac {3 d^2 (c d-b e)^2 (2 c d-b e)}{e^7 (d+e x)}+\frac {3 d (c d-b e) \left (5 c^2 d^2-5 b c d e+b^2 e^2\right ) \log (d+e x)}{e^7}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 207, normalized size = 1.04 \begin {gather*} \frac {4 e \left (-10 c^3 d^3+18 b c^2 d^2 e-9 b^2 c d e^2+b^3 e^3\right ) x+6 c e^2 \left (2 c^2 d^2-3 b c d e+b^2 e^2\right ) x^2-4 c^2 e^3 (c d-b e) x^3+c^3 e^4 x^4-\frac {2 d^3 (c d-b e)^3}{(d+e x)^2}+\frac {12 d^2 (c d-b e)^2 (2 c d-b e)}{d+e x}+12 d \left (5 c^3 d^3-10 b c^2 d^2 e+6 b^2 c d e^2-b^3 e^3\right ) \log (d+e x)}{4 e^7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.46, size = 267, normalized size = 1.34
method | result | size |
norman | \(\frac {\frac {\left (b^{3} e^{3}-6 b^{2} d \,e^{2} c +10 b \,c^{2} d^{2} e -5 c^{3} d^{3}\right ) x^{3}}{e^{4}}+\frac {c^{3} x^{6}}{4 e}-\frac {d^{2} \left (9 d \,e^{3} b^{3}-54 d^{2} e^{2} b^{2} c +90 e \,d^{3} b \,c^{2}-45 d^{4} c^{3}\right )}{2 e^{7}}+\frac {c \left (6 b^{2} e^{2}-10 b c d e +5 d^{2} c^{2}\right ) x^{4}}{4 e^{3}}+\frac {c^{2} \left (2 b e -c d \right ) x^{5}}{2 e^{2}}-\frac {2 d \left (3 d \,e^{3} b^{3}-18 d^{2} e^{2} b^{2} c +30 e \,d^{3} b \,c^{2}-15 d^{4} c^{3}\right ) x}{e^{6}}}{\left (e x +d \right )^{2}}-\frac {3 d \left (b^{3} e^{3}-6 b^{2} d \,e^{2} c +10 b \,c^{2} d^{2} e -5 c^{3} d^{3}\right ) \ln \left (e x +d \right )}{e^{7}}\) | \(260\) |
default | \(\frac {\frac {1}{4} c^{3} x^{4} e^{3}+b \,c^{2} e^{3} x^{3}-c^{3} d \,e^{2} x^{3}+\frac {3}{2} b^{2} c \,e^{3} x^{2}-\frac {9}{2} b \,c^{2} d \,e^{2} x^{2}+3 c^{3} d^{2} e \,x^{2}+b^{3} e^{3} x -9 b^{2} d \,e^{2} c x +18 b \,c^{2} d^{2} e x -10 c^{3} d^{3} x}{e^{6}}+\frac {d^{3} \left (b^{3} e^{3}-3 b^{2} d \,e^{2} c +3 b \,c^{2} d^{2} e -c^{3} d^{3}\right )}{2 e^{7} \left (e x +d \right )^{2}}-\frac {3 d^{2} \left (b^{3} e^{3}-4 b^{2} d \,e^{2} c +5 b \,c^{2} d^{2} e -2 c^{3} d^{3}\right )}{e^{7} \left (e x +d \right )}-\frac {3 d \left (b^{3} e^{3}-6 b^{2} d \,e^{2} c +10 b \,c^{2} d^{2} e -5 c^{3} d^{3}\right ) \ln \left (e x +d \right )}{e^{7}}\) | \(267\) |
risch | \(\frac {c^{3} x^{4}}{4 e^{3}}+\frac {b \,c^{2} x^{3}}{e^{3}}-\frac {c^{3} d \,x^{3}}{e^{4}}+\frac {3 b^{2} c \,x^{2}}{2 e^{3}}-\frac {9 b \,c^{2} d \,x^{2}}{2 e^{4}}+\frac {3 c^{3} d^{2} x^{2}}{e^{5}}+\frac {b^{3} x}{e^{3}}-\frac {9 b^{2} d c x}{e^{4}}+\frac {18 b \,c^{2} d^{2} x}{e^{5}}-\frac {10 c^{3} d^{3} x}{e^{6}}+\frac {\left (-3 b^{3} d^{2} e^{3}+12 b^{2} c \,d^{3} e^{2}-15 b \,c^{2} d^{4} e +6 c^{3} d^{5}\right ) x -\frac {d^{3} \left (5 b^{3} e^{3}-21 b^{2} d \,e^{2} c +27 b \,c^{2} d^{2} e -11 c^{3} d^{3}\right )}{2 e}}{e^{6} \left (e x +d \right )^{2}}-\frac {3 d \ln \left (e x +d \right ) b^{3}}{e^{4}}+\frac {18 d^{2} \ln \left (e x +d \right ) b^{2} c}{e^{5}}-\frac {30 d^{3} \ln \left (e x +d \right ) b \,c^{2}}{e^{6}}+\frac {15 d^{4} \ln \left (e x +d \right ) c^{3}}{e^{7}}\) | \(288\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 267, normalized size = 1.34 \begin {gather*} 3 \, {\left (5 \, c^{3} d^{4} - 10 \, b c^{2} d^{3} e + 6 \, b^{2} c d^{2} e^{2} - b^{3} d e^{3}\right )} e^{\left (-7\right )} \log \left (x e + d\right ) + \frac {1}{4} \, {\left (c^{3} x^{4} e^{3} - 4 \, {\left (c^{3} d e^{2} - b c^{2} e^{3}\right )} x^{3} + 6 \, {\left (2 \, c^{3} d^{2} e - 3 \, b c^{2} d e^{2} + b^{2} c e^{3}\right )} x^{2} - 4 \, {\left (10 \, c^{3} d^{3} - 18 \, b c^{2} d^{2} e + 9 \, b^{2} c d e^{2} - b^{3} e^{3}\right )} x\right )} e^{\left (-6\right )} + \frac {11 \, c^{3} d^{6} - 27 \, b c^{2} d^{5} e + 21 \, b^{2} c d^{4} e^{2} - 5 \, b^{3} d^{3} e^{3} + 6 \, {\left (2 \, c^{3} d^{5} e - 5 \, b c^{2} d^{4} e^{2} + 4 \, b^{2} c d^{3} e^{3} - b^{3} d^{2} e^{4}\right )} x}{2 \, {\left (x^{2} e^{9} + 2 \, d x e^{8} + d^{2} e^{7}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 408 vs.
\(2 (198) = 396\).
time = 2.58, size = 408, normalized size = 2.04 \begin {gather*} \frac {22 \, c^{3} d^{6} + {\left (c^{3} x^{6} + 4 \, b c^{2} x^{5} + 6 \, b^{2} c x^{4} + 4 \, b^{3} x^{3}\right )} e^{6} - 2 \, {\left (c^{3} d x^{5} + 5 \, b c^{2} d x^{4} + 12 \, b^{2} c d x^{3} - 4 \, b^{3} d x^{2}\right )} e^{5} + {\left (5 \, c^{3} d^{2} x^{4} + 40 \, b c^{2} d^{2} x^{3} - 66 \, b^{2} c d^{2} x^{2} - 8 \, b^{3} d^{2} x\right )} e^{4} - 2 \, {\left (10 \, c^{3} d^{3} x^{3} - 63 \, b c^{2} d^{3} x^{2} - 6 \, b^{2} c d^{3} x + 5 \, b^{3} d^{3}\right )} e^{3} - 2 \, {\left (34 \, c^{3} d^{4} x^{2} - 6 \, b c^{2} d^{4} x - 21 \, b^{2} c d^{4}\right )} e^{2} - 2 \, {\left (8 \, c^{3} d^{5} x + 27 \, b c^{2} d^{5}\right )} e + 12 \, {\left (5 \, c^{3} d^{6} - b^{3} d x^{2} e^{5} + 2 \, {\left (3 \, b^{2} c d^{2} x^{2} - b^{3} d^{2} x\right )} e^{4} - {\left (10 \, b c^{2} d^{3} x^{2} - 12 \, b^{2} c d^{3} x + b^{3} d^{3}\right )} e^{3} + {\left (5 \, c^{3} d^{4} x^{2} - 20 \, b c^{2} d^{4} x + 6 \, b^{2} c d^{4}\right )} e^{2} + 10 \, {\left (c^{3} d^{5} x - b c^{2} d^{5}\right )} e\right )} \log \left (x e + d\right )}{4 \, {\left (x^{2} e^{9} + 2 \, d x e^{8} + d^{2} e^{7}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.82, size = 284, normalized size = 1.42 \begin {gather*} \frac {c^{3} x^{4}}{4 e^{3}} - \frac {3 d \left (b e - c d\right ) \left (b^{2} e^{2} - 5 b c d e + 5 c^{2} d^{2}\right ) \log {\left (d + e x \right )}}{e^{7}} + x^{3} \left (\frac {b c^{2}}{e^{3}} - \frac {c^{3} d}{e^{4}}\right ) + x^{2} \cdot \left (\frac {3 b^{2} c}{2 e^{3}} - \frac {9 b c^{2} d}{2 e^{4}} + \frac {3 c^{3} d^{2}}{e^{5}}\right ) + x \left (\frac {b^{3}}{e^{3}} - \frac {9 b^{2} c d}{e^{4}} + \frac {18 b c^{2} d^{2}}{e^{5}} - \frac {10 c^{3} d^{3}}{e^{6}}\right ) + \frac {- 5 b^{3} d^{3} e^{3} + 21 b^{2} c d^{4} e^{2} - 27 b c^{2} d^{5} e + 11 c^{3} d^{6} + x \left (- 6 b^{3} d^{2} e^{4} + 24 b^{2} c d^{3} e^{3} - 30 b c^{2} d^{4} e^{2} + 12 c^{3} d^{5} e\right )}{2 d^{2} e^{7} + 4 d e^{8} x + 2 e^{9} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.75, size = 264, normalized size = 1.32 \begin {gather*} 3 \, {\left (5 \, c^{3} d^{4} - 10 \, b c^{2} d^{3} e + 6 \, b^{2} c d^{2} e^{2} - b^{3} d e^{3}\right )} e^{\left (-7\right )} \log \left ({\left | x e + d \right |}\right ) + \frac {1}{4} \, {\left (c^{3} x^{4} e^{9} - 4 \, c^{3} d x^{3} e^{8} + 12 \, c^{3} d^{2} x^{2} e^{7} - 40 \, c^{3} d^{3} x e^{6} + 4 \, b c^{2} x^{3} e^{9} - 18 \, b c^{2} d x^{2} e^{8} + 72 \, b c^{2} d^{2} x e^{7} + 6 \, b^{2} c x^{2} e^{9} - 36 \, b^{2} c d x e^{8} + 4 \, b^{3} x e^{9}\right )} e^{\left (-12\right )} + \frac {{\left (11 \, c^{3} d^{6} - 27 \, b c^{2} d^{5} e + 21 \, b^{2} c d^{4} e^{2} - 5 \, b^{3} d^{3} e^{3} + 6 \, {\left (2 \, c^{3} d^{5} e - 5 \, b c^{2} d^{4} e^{2} + 4 \, b^{2} c d^{3} e^{3} - b^{3} d^{2} e^{4}\right )} x\right )} e^{\left (-7\right )}}{2 \, {\left (x e + d\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 352, normalized size = 1.76 \begin {gather*} x^3\,\left (\frac {b\,c^2}{e^3}-\frac {c^3\,d}{e^4}\right )-x^2\,\left (\frac {3\,d\,\left (\frac {3\,b\,c^2}{e^3}-\frac {3\,c^3\,d}{e^4}\right )}{2\,e}-\frac {3\,b^2\,c}{2\,e^3}+\frac {3\,c^3\,d^2}{2\,e^5}\right )+\frac {x\,\left (-3\,b^3\,d^2\,e^3+12\,b^2\,c\,d^3\,e^2-15\,b\,c^2\,d^4\,e+6\,c^3\,d^5\right )+\frac {-5\,b^3\,d^3\,e^3+21\,b^2\,c\,d^4\,e^2-27\,b\,c^2\,d^5\,e+11\,c^3\,d^6}{2\,e}}{d^2\,e^6+2\,d\,e^7\,x+e^8\,x^2}+x\,\left (\frac {b^3}{e^3}+\frac {3\,d\,\left (\frac {3\,d\,\left (\frac {3\,b\,c^2}{e^3}-\frac {3\,c^3\,d}{e^4}\right )}{e}-\frac {3\,b^2\,c}{e^3}+\frac {3\,c^3\,d^2}{e^5}\right )}{e}-\frac {c^3\,d^3}{e^6}-\frac {3\,d^2\,\left (\frac {3\,b\,c^2}{e^3}-\frac {3\,c^3\,d}{e^4}\right )}{e^2}\right )+\frac {c^3\,x^4}{4\,e^3}+\frac {\ln \left (d+e\,x\right )\,\left (-3\,b^3\,d\,e^3+18\,b^2\,c\,d^2\,e^2-30\,b\,c^2\,d^3\,e+15\,c^3\,d^4\right )}{e^7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________